namespace System
{
    public static class IDisposableExtentions
    {
        public static void Using<T>(this T obj, Action<T> action) where T : IDisposable { action(obj); obj.Dispose(); }
    }
}